import { Injectable } from '@angular/core';
import { ApiService } from '../../utils/api'
import { apiSource } from '../../global/apiConfig';
@Injectable()
export class HomeService {

  constructor(public apiService: ApiService) {
  }

  public fetchRandomData(params?: any): any {
    return this.apiService
      .post(`shopData/getShopData`, params)
  }

  public getShopList(): any {
    return this.apiService
      .get(`mock-data/post-mock.json`,apiSource.MOCK)
  }
}